<?php
if($memory)
{
	echo form_open('memory/update');
	echo form_hidden('memoryId', $memory->memoryId);
?>
<div class="container front-container">

	<div class="review-main">

		<div class="review-console" id="memory">

			<h1><?php echo nl2br(htmlspecialchars($record->memory))?></h1>
		</div>

		<div class="review-console review-label" id="description">

			<h1><?php echo nl2br(htmlspecialchars($record->description))?></h1>
		</div>

	</div>

	<div class="review-action">
			<button type="button" class="btn btn-large btn-danger" id="forget">不记得</button>
		<?php 
			$button = array('name'=>'forget', 'value'=>'forget', 'id'=>'no', 'type'=>'submit', 'content'=>'下一个', 'class'=>'btn btn-large btn-danger');
			echo form_button($button);
			$button = array('name'=>'remember', 'value'=>'remember', 'id'=>'ok',  'type'=>'submit', 'content'=>'我记得', 'class'=>'btn btn-large btn-success');
			echo form_button($button);
		?>
	</div>

</div>
<?php 
	echo form_close();
}
else
{?>
	
	<div class="container front-container">

	<div class="review-main">

		<div class="review-console" id="memory">

			<h1>恭喜您，今天没有需要记忆的卡片！</h1>
		</div>



	</div>


</div>
	
<?php
}
?>
<script>
	bdc.memory.btnHandler()
</script>
